package Demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-12-21
 * Time: 21:19
 */
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        final int HUMANNUM=10;
        String persons[]=new String[HUMANNUM];
        Scanner in=new Scanner(System.in);
        for(int i=0;i<persons.length;i++)
            persons[i]=in.nextLine();
        int result=numofHan(persons);
        System.out.println(result);

    }
    public static int numofHan(String data[]){
        int count = 0;
        for (int i = 0; i < data.length; i++) {
            int ret = data[i].lastIndexOf("汉族");
            if (ret > -1){
                count++;
            }
        }
        return count;
    }
    /*在此处给出函数numofHan()*/


}

